package com.hunan.api.catv.entity.vo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author jiang zhuan
 * @version 1.0
 * @description 评论VO
 * @date 2020/9/22 0022
 * @package com.hunan.api.catv.entity.vo
 * @company 湖南有线
 */
public class CommentVo implements Serializable {

    /**
     * 评论Id 主键
     */
    private Long commentId;

    /**
     * 发表评论用户Id
     */
    private Integer memberId;

    /**
     * 被评论用户名称
     */
    private String beAnswerMemberName;

    /**
     * 昵称
     */
    private String nickName;

    /**
     * 微信头像
     */
    private String avatarUrl;

    /**
     * 评论内容
     */
    private String content;


    /**
     * 评论点赞数目
     */
    private Integer praiseCount;

    /**
     * 评论时间
     */
    private String createTime;

    /**
     * 更新时间
     */
    private String updateTime;

    /**
     * 状态
     */
    private Integer state;

    /**
     * 审核时间
     */
    private Date reviewTime;

    private Long parentId;

    private Integer level;

    private Integer officialReply;

    private Integer answerCount;

    private Long firstLevelId;

    private Integer praiseState;

    private Integer authorPraise;

    public static CommentVo create() {
        CommentVo commentVo = new CommentVo();
        commentVo.setOwner(0);
        commentVo.setPraiseState(0);
        commentVo.setAuthorPraise(0);
        commentVo.setFirstLevelId(0L);
        commentVo.setPraiseCount(0);
        commentVo.setAnswerCount(0);
        return commentVo;
    }

    public Integer getAuthorPraise() {
        return authorPraise;
    }

    public void setAuthorPraise(Integer authorPraise) {
        this.authorPraise = authorPraise;
    }

    public Integer getPraiseState() {
        return praiseState;
    }

    public void setPraiseState(Integer praiseState) {
        this.praiseState = praiseState;
    }

    private List<CommentVo> subList = new ArrayList<>();

    public List<CommentVo> getSubList() {
        return subList;
    }

    public void setSubList(List<CommentVo> subList) {
        this.subList = subList;
    }

    public Long getFirstLevelId() {
        return firstLevelId;
    }

    public void setFirstLevelId(Long firstLevelId) {
        this.firstLevelId = firstLevelId;
    }

    public Integer getAnswerCount() {
        return answerCount;
    }

    public void setAnswerCount(Integer answerCount) {
        this.answerCount = answerCount;
    }

    /**
     * 手机号
     */
    private String phone;

    private String answerId;

    private Integer answerType;

    /**
     * 该视频下评论数
     */
    private String commentCounts;


    /**
     * 是否是作者 0不是 1是
     */
    private Integer owner;

    public Integer getOwner() {
        return owner;
    }

    public void setOwner(Integer owner) {
        this.owner = owner;
    }

    public String getCommentCounts() {
        return commentCounts;
    }

    public void setCommentCounts(String commentCounts) {
        this.commentCounts = commentCounts;
    }

    public String getAnswerId() {
        return answerId;
    }

    public void setAnswerId(String answerId) {
        this.answerId = answerId;
    }

    public Integer getAnswerType() {
        return answerType;
    }

    public void setAnswerType(Integer answerType) {
        this.answerType = answerType;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Date getReviewTime() {
        return reviewTime;
    }

    public void setReviewTime(Date reviewTime) {
        this.reviewTime = reviewTime;
    }

    private static final long serialVersionUID = 1L;


    public Long getCommentId() {
        return commentId;
    }

    public void setCommentId(Long commentId) {
        this.commentId = commentId;
    }

    public Integer getMemberId() {
        return memberId;
    }

    public void setMemberId(Integer memberId) {
        this.memberId = memberId;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getPraiseCount() {
        return praiseCount;
    }

    public void setPraiseCount(Integer praiseCount) {
        this.praiseCount = praiseCount;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getOfficialReply() {
        return officialReply;
    }

    public void setOfficialReply(Integer officialReply) {
        this.officialReply = officialReply;
    }

    public String getBeAnswerMemberName() {
        return beAnswerMemberName;
    }

    public void setBeAnswerMemberName(String beAnswerMemberName) {
        this.beAnswerMemberName = beAnswerMemberName;
    }

    @Override
    public String toString() {
        return "CommentVo{" +
                "commentId=" + commentId +
                ", memberId=" + memberId +
                ", beAnswerMemberName='" + beAnswerMemberName + '\'' +
                ", nickName='" + nickName + '\'' +
                ", avatarUrl='" + avatarUrl + '\'' +
                ", content='" + content + '\'' +
                ", praiseCount=" + praiseCount +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", state=" + state +
                ", reviewTime=" + reviewTime +
                ", parentId=" + parentId +
                ", level=" + level +
                ", officialReply=" + officialReply +
                ", answerCount=" + answerCount +
                ", firstLevelId=" + firstLevelId +
//                ", subList=" + subList +
                ", phone='" + phone + '\'' +
                ", answerId='" + answerId + '\'' +
                '}';
    }

}
